# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-pywerview
_pkgname=pywerview
pkgver=0.7.3
pkgrel=1
pkgdesc="A Python port of PowerSploit's PowerView'."
arch=('any')
url='https://pypi.org/project/pywerview/#files'
license=('GPL3')
depends=('python' 'python-pyasn1' 'python-gssapi'
         'python-ldap3' 'python-beautifulsoup4' 'impacket' 'python-lxml' )
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('ce09e5a34fb6d661dfa546f929b6b75578149ce1030ac512579b72c069e39b8f1dc8d6272a33b0fd405012e4d9b22ef064fc76a03161e9bb47f6530e0cfe0903')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

